using System.ComponentModel.DataAnnotations;

namespace StudentManagement.Application.DTOs
{
    public class PermissionDTO
    {
        public int Id { get; set; }

        [Required(ErrorMessage = "权限名称不能为空")]
        [StringLength(50, ErrorMessage = "权限名称不能超过50个字符")]
        public string Name { get; set; }

        [StringLength(200, ErrorMessage = "权限描述不能超过200个字符")]
        public string Description { get; set; }

        [Required(ErrorMessage = "权限代码不能为空")]
        [StringLength(50, ErrorMessage = "权限代码不能超过50个字符")]
        public string Code { get; set; }
    }
}